import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/setup'
  },
  {
    path: '/setup',
    component: () => import('@/views/Setup')
  },
  {
    path: '/setup-jsx',
    component: () => import('@/views/SetupJsx')
  },
  {
    path: '/reactive',
    component: () => import('@/views/Reactive')
  },
  {
    path: '/lifecycle',
    component: () => import('@/views/Lifecycle')
  },
  {
    path: '/refs',
    component: () => import('@/views/Refs')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
